package pqt12_Swing;

import java.awt.BorderLayout;

import javax.swing.JButton;
import javax.swing.JFrame;

public class EjemploZonas {

	/**
	 * @param args
	 */
	private JFrame frame;
	private JButton bn,bs,bw,be,bc;
	
	public EjemploZonas() {
		 frame = new JFrame("Border Layout");
		 bn=	new JButton("NORTH");
		 bs=	new JButton("SOUTH");
		 bw=	new JButton("WEST");
		 be= new JButton("EAST");
		 bc =	new JButton("CENTER");
		
		 
	}
	public void FijarFrame(){
		frame.add(bc,BorderLayout.CENTER);
		frame.add(be,BorderLayout.EAST);
		frame.add(bn,BorderLayout.NORTH);
		frame.add(bs,BorderLayout.SOUTH);
		frame.add(bw,BorderLayout.WEST);
		frame.setVisible(true);
		frame.setSize(800,600);
		
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		EjemploZonas ejz= new EjemploZonas();
		ejz.FijarFrame();
		
		
	}

}
